project(dbusapplet)

# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)


add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_SOURCE_DIR}/../lib
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )

set(dbusapplet_SRCS dbusapplet.cpp ../lib/dbusappletItem.cpp)

kde4_add_plugin(plasma_applet_dbus ${dbusapplet_SRCS})
target_link_libraries(plasma_applet_dbus plasma ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTWEBKIT_LIBRARY})

install(TARGETS plasma_applet_dbus DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-dbus.desktop DESTINATION ${SERVICES_INSTALL_DIR})

install(FILES data.html DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/dbusapplet)
